package com.ciaojian.core.model.dto;

import com.ciaojian.core.enums.business.ScheduleTypeEnum;
import com.ciaojian.core.enums.business.WorkerApplyStatusEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Time;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author Atlakyn
 */
@Data
public class SchedulingDTO {
    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "发型师id", required = true)
    private Integer workerId;

    @ApiModelProperty(value = "发型师姓名", required = true)
    private String name;

    @ApiModelProperty(value = "门店id", required = true)
    private Integer storeId;

    @ApiModelProperty(value = "门店名称", required = true)
    private String storeName;

    @ApiModelProperty(value = "发型师手机号", required = true)
    private String phone;

    @ApiModelProperty(value = "班次Id", required = true)
    private Integer rosterId;

    @ApiModelProperty(value = "班次", required = true)
    private String droster;

    @ApiModelProperty(value = "日期", required = true)
    @JsonFormat(timezone = "GMT+8")
    private Date date;

    @ApiModelProperty(value = "审核状态:0待审核 1通过 2驳回", hidden = true)
    private WorkerApplyStatusEnum status;

    @ApiModelProperty("日程类型")
    private ScheduleTypeEnum type;

    /**
     * 排班审核ID
     */
    private Long examineId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    @ApiModelProperty(value = "逻辑删除", hidden = true)
    private Boolean logicDel;

    private RosterDTO roster;

    @ApiModelProperty("第一次就餐开始时间")
    private Time lunchStartTime;

    @ApiModelProperty("第一次就餐结束时间")
    private Time lunchEndTime;

    @ApiModelProperty("第二次就餐开始时间")
    private Time dinnerStartTime;

    @ApiModelProperty("第二次就餐结束时间")
    private Time dinnerEndTime;

}
